<extend name="public:base"/>

<block name="menu"></block>
<block name="left"></block>

<block name="css">
    <style type="text/css">
        .userCenter{width: 100%;}
    </style>
    <link rel="stylesheet" href="__CSS__/sign.css?v={:config('app_ver')}">
</block>

<block name="main">
    <div class="login_box">


        <if condition="count($ad) GT 0">
            <a href="{$ad.url}" target="_blank" class="redPackBtn"><img src="{$ad.cover_id|get_cover='path'}"></a>
            <else/>
            <a href="{:url('user/passport/register')}" class="login_ad" style="background:url('__IMG__/login_bg.jpg') no-repeat center bottom">&nbsp;</a>
        </if>

        <div class="inset_box">
            <form action="{:url('user/passport/login')}" method="post" id="login">
                {:token()}
                <div class="public_input">

                    <div class="input_box">
                        <input type="text" value="" name="phone" class="input_t" placeholder="请输入手机号码" id="mobile" autocomplete="off" />
                    </div>
                    <div class="input_box">
                        <input type="password" value="" name="password" maxlength="16" class="input_t" autocomplete="off"  placeholder="请输入8-16位数字+字母组合密码" id="pwd" />
                    </div>

                    <div class="input_box" id="verifyImageCode" data-check="1">
                        <input type="text" value="" name="verify" max="4" class="input_t verifyinput" autocomplete="off" maxlength="4" placeholder="请输入验证码" id="imgCode" />
                        <img src="{:captcha_src()}" class="verifyImg reloadVerify" alt="点击切换" title="点击切换" />
                    </div>
                    <div class="login_error">
                        <i class="iconFont">&#xe62a;</i>
                        <span></span>
                    </div>
                    <div class="rememberLine mb10">
                        <label class="fl a999"><input type="checkbox" name="remember" value="1" checked />记住账号</label>
                        <a href="{:url('user/passport/find')}" class="fr a999 un">忘记密码？</a>
                    </div>
                    <div class="input_box">
                        <input type="submit" class="btn_b" id="loginBtn" value="立即登录" name="" />
                        <p class="tc a78 pt20">没有账号？<a href="{:url('user/passport/register')}" class="af60 un">立即注册</a></p>
                    </div>
                </div>
            </form>
        </div>
    </div>

</block>

<block name="footer">
    <include file="../template/default/index/public/min_footer.html"/>
</block>

<block name="js">
    <script type="text/javascript" src="__JS__/sign.js"></script>
    <script type="text/javascript" src="__JS__/login.js"></script>
</block>
